package com.zengqingfa.designpattern.behavior.facade;

/**
 * @author zengqingfa
 * @className Client
 * @description
 * @create 2021/8/29 12:48
 */
public class Client {

    public static void main(String[] args) {
        //没有使用门面的情况下，客户端需要与每个子系统进行交互
        Heater heater = new Heater();
        Light light = new Light();
        Tv tv = new Tv();

        heater.open();
        light.open();
        tv.open();

        //使用门面的情况下
        Facade facade = new Facade();
        facade.open();

    }
}